home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 6 / FM Towns Free Software Collection 6.iso / ms_dos / disgas / test.s < prev   
Encoding:
Text File  |  1993-07-08  |  542 b   |  36 lines

  1. #    TEST.S
  2.  
  3.     .align 2
  4. start:
  5.     nop
  6.     nop
  7.     movl    %cr0,%eax
  8.     movl    %cr2,%eax
  9.     movl    %cr3,%eax
  10.     movb    $1,%al
  11.     movw    $1,%ax
  12.     movl    $1,%eax
  13.     movl    (%ebx),%eax
  14.     movl    2(%ebx,%esi,1),%eax
  15.     movl    %edx,0x2000(%ebx,%esi,1)
  16.     call    subr
  17.     ja    lret
  18.     jmp    start
  19. lret:    ret
  20.     
  21. subr:    movl    0x11111111,%eax
  22.     movl    %ebx,%eax
  23.     imull    $3,%edx,%eax
  24.     rorl    $1,%eax
  25.     shrl    $8,%eax
  26.     shll    %cl,%eax
  27.     addl    $-1,%eax
  28.     ljmp    $0x11,$0x22334455
  29.     .byte    0x9a,0x00,0x11,0x22,0x33,0x44,0x55
  30.     lfs    0x20(%edx,%edi,2),%eax
  31.     btr    %eax,(%esi,%ebx)
  32.     bt    $3,%eax
  33.     ret
  34.     nop
  35.     nop
  36.